<include file="./Tm/Dt/Admin/Top.html" />

<include file="./Tm/Dt/Admin/Left.html" />


<div id="right">
    <include file="./Tm/Dt/Admin/Nav.html" />
    <!--主要内容块-->
    <script type="text/javascript" src="__PUBLIC__/Dt/lib/jedate/jedate.min.js" ></script>
    <div class="main">
        <div class="panel panel-primary">
            <div class="panel-body panel-heading">
                <h3 class="panel-title">订单管理</h3>
            </div>
            <div class="panel-footer clearfix">
                <div class="selct">
                    <form class="form-inline" role="form">
                        <div class="form-group">
                            <div class="input-group">
                                <div class="input-group-addon">订单状态</div>
                                <select name="status" class="form-control ">
                                	<option value="1" <if condition="$status eq 1">selected</if>>下单</option>
	                                <option value="2" <if condition="$status eq 2">selected</if>>已付款</option>
	                                <option value="3" <if condition="$status eq 3">selected</if>>已发货</option>
	                                <option value="4" <if condition="$status eq 4">selected</if>>交易成功</option>
	                                <option value="5" <if condition="$status eq 5">selected</if>>退货</option>
	                                <option value="6" <if condition="$status eq 6">selected</if>>关闭</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="input-group">
                                <div class="input-group-addon">开始时间</div>
                                <input id="b" name="b" class="form-control stu1" type="text" placeholder="输入开始日期" value="{$begintime}" readonly>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="input-group">
                                <div class="input-group-addon">结束时间</div>
                                <input id="e" name="e" class="form-control stu2" type="text" placeholder="输入结束日期" value="{$endtime}" readonly >
                            </div>
                        </div>
                        <script type="text/javascript">
                            jeDate({
                                dateCell:".stu1",
                                format:"YYYY-MM-DD",
                                isTime:false,
                                minDate:"1900-1-1",
                                maxDate:"2099-12-12"
                            });
                            jeDate({
                                dateCell:".stu2",
                                format:"YYYY-MM-DD",
                                isTime:false,
                                minDate:"1900-1-1",
                                maxDate:"2099-12-12"
                            });
                        </script>
                        <input type="submit" class="btn btn-default" value="查询" />
                    </form>
                </div>

                <table class="table">
                    <tr>
                        <th>订单号</th>
                        <th>数量</th>
                        <th>总积分</th>
                        <th>收件人</th>
                        <th>快递</th>
                        <th>下单时间</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    <volist name="room" id="vo" key="i">
                    <tr>
                        <td>{$vo.orderid}</td>
                        <td>{$vo.number}</td>
                        <td>{$vo.price}</td>
                        <td>{$vo.contact}</td>
                        <td>快递：{$vo.kdgs}<br>单号：{$vo.kddh}</td>
                        <td>{$vo.createtime|date="Y-m-d H:i:s",###}</td>
                        <td>
                            <switch name="vo.status">
                                <case value="1">下单</case>
                                <case value="2">已付款</case>
                                <case value="3">已发货</case>
                                <case value="4">交易成功</case>
                                <case value="5">退货</case>
                                <case value="6">关闭</case>
                            </switch>
                        </td>
                        <td>
                        	<a href="/admin/index/order_detail.html?id={$vo.id}">订单详情</a>
                        	<switch name="vo.status">
                                <case value="2"><a href="/admin/index/order_dispatched.html?id={$vo.id}">发货</a></case>
                           </switch>
                       	</td>
                    </tr>
                    </volist>
                </table>
                <gt name="total" value="$pagesize">
                    <include file="./Tm/Dt/Page.html" />
                </gt>
            </div>
        </div>
    </div>
</div>

<include file="./Tm/Dt/Admin/Foot.html" />